Repository navigation
refactor(client): 인증과 앱 셸 책임 분리 - #65
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
tartelettie
force-pushed
the
refactor/frontend-context-foundation
branch
from
August 27, 2026 12:06
b5258a4 to
5cd18d5
Compare
tartelettie
force-pushed
the
refactor/frontend-context-foundation
branch
from
August 27, 2026 12:18
5cd18d5 to
362faad
Compare
tartelettie
force-pushed
the
refactor/frontend-context-foundation
branch
from
August 29, 2026 03:04
3324d31 to
c70b596
Compare
tartelettie
force-pushed
the
refactor/frontend-context-foundation
branch
from
August 29, 2026 03:06
c70b596 to
58461cd
Compare
tartelettie
force-pushed
the
refactor/frontend-context-foundation
branch
from
August 29, 2026 03:22
58461cd to
6d0fd4f
Compare
tartelettie
force-pushed
the
refactor/frontend-context-foundation
branch
from
August 29, 2026 03:27
6d0fd4f to
6e71c11
Compare
tartelettie
force-pushed
the
refactor/frontend-context-foundation
branch
from
August 29, 2026 03:31
6e71c11 to
a4534ba
Compare
tartelettie
marked this pull request as ready for review
August 29, 2026 08:07
tartelettie
force-pushed
the
refactor/frontend-context-foundation
branch
from
August 29, 2026 09:21
71af9bc to
eb8f4de
Compare
Owner
|
pr 본문은 신경써주세요 |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
이 PR을 어떻게 봐야 하나 이 PR들은 리뷰를 쉽게 하려고 기능 단위로 쌓아 둔 PR입니다. 지금 GitHub 화면에서 #66/#69/#70은
main으로 바로 merge되는 PR이 아닙니다. 선행 PR 브랜치를 base로 둬서 리뷰어가 "이번 PR에서 추가로 바뀐 부분"만 작게 볼 수 있게 해 둔 상태입니다. 예를 들어 #66 화면에 이렇게 보이면 정상입니다.text refactor/todo-routine-flow → refactor/frontend-context-foundation이 상태에서 바로 merge하면main이 아니라refactor/frontend-context-foundation으로 들어갑니다. 그래서 실제 main merge는 아래 순서로 합니다.text #65를 main에 merge → #66 base를 main으로 바꾼 뒤 merge → #69 base를 main으로 바꾼 뒤 merge → #70 base를 main으로 바꾼 뒤 merge즉 리뷰할 때는 지금처럼 stacked PR로 작게 보고, merge할 때만 다음 PR의 base를main으로 바꿔서 순서대로 넣습니다. --- ## 왜App.tsx가 인증 상태 확인, OAuth 로그인/로그아웃, 비로그인 화면, 로그인 후 앱 레이아웃 조립까지 모두 들고 있었습니다. 이 상태에서 todo/notes/time 리팩토링을 이어가면 기능 변경과 앱 진입점 변경이 계속 섞여서 리뷰 범위가 커집니다. 이 PR은 후속 기능별 PR을 작게 만들기 위한 첫 단계로, 인증 경계와 앱 셸 경계만 분리합니다. ## 무엇을 했나 -useAuthSession으로 Supabase 세션 확인, OAuth callback 처리, Google 로그인, 로그아웃 동작을 이동했습니다.checking/login/logout대신isCheckingSession/signInWithGoogle/signOut으로 명확히 했습니다. -AuthGate로 로딩/비로그인/로그인 버튼 UI를 분리했습니다. -AuthGateprops를checking/onLogin대신isCheckingSession/onSignIn으로 명확히 했습니다. -AppShell로 로그인 이후의 SafeArea, StatusBar, 상단 바, 탭 내비게이션, dashboard 조립을 분리했습니다. -AppShellprops를store/onLogout대신workspaceData/onSignOut으로 명확히 했습니다. -App.tsx는 세션 상태에 따라AuthGate또는AppShell을 선택하는 진입점 역할만 하도록 줄였습니다. -AuthGate/AppShell스타일은 각 컴포넌트의.styles.ts로 분리했습니다. ## 어떻게 바뀌었나 - before:App.tsx가 auth effect, auth handler, 앱 레이아웃, 화면 선택을 한 파일에서 처리했습니다. - after:identity는 인증,application은 앱 셸,App.tsx는 조립만 담당합니다. - 새로 만든 auth/shell 경계에서는 의미가 넓은store,login,logout,checking이름을 쓰지 않습니다. - 기존Screens.tsx화면 계약은 이 PR에서 바꾸지 않았습니다. 화면별 명시적 props 분리는 후속 PR에서 처리합니다. - 데이터 로딩, cache, request helper, todo/notes/time/routine 동작은 이 PR에서 건드리지 않았습니다. ## 유지한 내용 - 로그인/로그아웃/OAuth callback 동작 - 기존 상단 바, 탭, dashboard UI 흐름 - 서버 API/DTO 구조 - todo/notes/time/routine 기능 동작 - 기존 CI, prettier, vitest 설정 -AGENTS.md,skills/verify등 작업 기준 문서 ## 일부러 제외한 내용 - todo/routine/notes/time 기능별 화면 리팩토링 - 기존Screens.tsx내부 props 이름 정리 - workspace/cache/loading/request 소유권 변경 - 새 CI 정책, line limit, e2e/smoke test 추가 - 동작 변경성 기능 수정 ## 검증 -cd client && npm test -- --run-cd client && npm run typecheck-cd client && npm run format:check